package com.example.spring.ioc.annotation.controller;

import com.example.spring.ioc.annotation.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author lei yu
 * @date 2024/05/16
 */
@Controller // @Component <bean>
public class UserController {

    @Autowired
    private UserService userService;

    public void getUser() {
        userService.getBean();
    }
}
